package com.dhl.fin.api.domain;

import com.dhl.fin.api.common.annotation.ExcelTitle;
import com.dhl.fin.api.common.domain.BasicDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @author CuiJianbo
 * @since 2025/3/15
 */

/**
 * 咨询
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "t_consult_chat")
public class ConsultChat extends BasicDomain {

    @ExcelTitle(name = "用户发送的内容", sort = 3, width = 50)
    @Column(columnDefinition = "varchar(400)")
    private String content;

    @Column(columnDefinition = "varchar(50)")
    private String owner;

    @Column(columnDefinition = "varchar(100)")
    private String ownerHead;

    @ManyToOne
    @JoinColumn(name = "consult_id")
    private Consult consult;

    @Transient
    private Boolean showReply;

    @ExcelTitle(name = "对话ID", sort = 1, width = 10)
    @Transient
    private String consultNum;

    @ExcelTitle(name = "人工回复内容", sort = 4, width = 50)
    @Transient
    private String replayContent;

    @ExcelTitle(name = "标题", sort = 2, width = 20)
    @Transient
    private String consultTitle;

}
